From da2a1de10aa37128758aaad067ba2997b2cd1bba Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sun, 19 Aug 2007 20:11:59 +0000 Subject: [PATCH] garmin_txt: Fix abort on unknown columns. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2946 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin_txt.c b/gpsbabel/garmin_txt.c index 97f7716c9..0065130de 100644 --- a/gpsbabel/garmin_txt.c +++ b/gpsbabel/garmin_txt.c @@ -1051,7 +1051,7 @@ bind_fields(const header_type ht) c = fields; field_no = 1; - while (c != NULL) { + while (*c) { if (strcmp(c, name) == 0) { header_fields[ht][i] = field_no; #if 0 -- 2.30.2